package pers.wz.server;

import pers.wz.service.impl.UserServiceImpl;

import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.util.Scanner;

public class RMIServer {
    public static void main(String[] args) {
        try {
            Registry registry = LocateRegistry.createRegistry(9999);
            UserServiceImpl userService = new UserServiceImpl();
            registry.rebind("userService",userService);

        } catch (RemoteException e) {
            e.printStackTrace();
        }

    }
}
